Optimal. Leaf size=67 \[ -\frac {1}{12} \log \left (x^2-x+3\right )+\frac {1}{12} \log \left (x^2+x+3\right )-\frac {\tan ^{-1}\left (\frac {1-2 x}{\sqrt {11}}\right )}{6 \sqrt {11}}+\frac {\tan ^{-1}\left (\frac {2 x+1}{\sqrt {11}}\right )}{6 \sqrt {11}} \]
________________________________________________________________________________________
Rubi [A] time = 0.05, antiderivative size = 67, normalized size of antiderivative = 1.00, number of steps used = 9, number of rules used = 5, integrand size = 12, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.417, Rules used = {1094, 634, 618, 204, 628} \begin {gather*} -\frac {1}{12} \log \left (x^2-x+3\right )+\frac {1}{12} \log \left (x^2+x+3\right )-\frac {\tan ^{-1}\left (\frac {1-2 x}{\sqrt {11}}\right )}{6 \sqrt {11}}+\frac {\tan ^{-1}\left (\frac {2 x+1}{\sqrt {11}}\right )}{6 \sqrt {11}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 204
Rule 618
Rule 628
Rule 634
Rule 1094
Rubi steps
\begin {align*} \int \frac {1}{9+5 x^2+x^4} \, dx &=\frac {1}{6} \int \frac {1-x}{3-x+x^2} \, dx+\frac {1}{6} \int \frac {1+x}{3+x+x^2} \, dx\\ &=\frac {1}{12} \int \frac {1}{3-x+x^2} \, dx-\frac {1}{12} \int \frac {-1+2 x}{3-x+x^2} \, dx+\frac {1}{12} \int \frac {1}{3+x+x^2} \, dx+\frac {1}{12} \int \frac {1+2 x}{3+x+x^2} \, dx\\ &=-\frac {1}{12} \log \left (3-x+x^2\right )+\frac {1}{12} \log \left (3+x+x^2\right )-\frac {1}{6} \operatorname {Subst}\left (\int \frac {1}{-11-x^2} \, dx,x,-1+2 x\right )-\frac {1}{6} \operatorname {Subst}\left (\int \frac {1}{-11-x^2} \, dx,x,1+2 x\right )\\ &=-\frac {\tan ^{-1}\left (\frac {1-2 x}{\sqrt {11}}\right )}{6 \sqrt {11}}+\frac {\tan ^{-1}\left (\frac {1+2 x}{\sqrt {11}}\right )}{6 \sqrt {11}}-\frac {1}{12} \log \left (3-x+x^2\right )+\frac {1}{12} \log \left (3+x+x^2\right )\\ \end {align*}
________________________________________________________________________________________
Mathematica [C] time = 0.07, size = 91, normalized size = 1.36 \begin {gather*} \frac {i \tan ^{-1}\left (\frac {x}{\sqrt {\frac {1}{2} \left (5+i \sqrt {11}\right )}}\right )}{\sqrt {\frac {11}{2} \left (5+i \sqrt {11}\right )}}-\frac {i \tan ^{-1}\left (\frac {x}{\sqrt {\frac {1}{2} \left (5-i \sqrt {11}\right )}}\right )}{\sqrt {\frac {11}{2} \left (5-i \sqrt {11}\right )}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
IntegrateAlgebraic [F] time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \int \frac {1}{9+5 x^2+x^4} \, dx \end {gather*}
Verification is not applicable to the result.
[In]
[Out]
________________________________________________________________________________________
fricas [A] time = 1.10, size = 53, normalized size = 0.79 \begin {gather*} \frac {1}{66} \, \sqrt {11} \arctan \left (\frac {1}{11} \, \sqrt {11} {\left (2 \, x + 1\right )}\right ) + \frac {1}{66} \, \sqrt {11} \arctan \left (\frac {1}{11} \, \sqrt {11} {\left (2 \, x - 1\right )}\right ) + \frac {1}{12} \, \log \left (x^{2} + x + 3\right ) - \frac {1}{12} \, \log \left (x^{2} - x + 3\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [A] time = 0.20, size = 53, normalized size = 0.79 \begin {gather*} \frac {1}{66} \, \sqrt {11} \arctan \left (\frac {1}{11} \, \sqrt {11} {\left (2 \, x + 1\right )}\right ) + \frac {1}{66} \, \sqrt {11} \arctan \left (\frac {1}{11} \, \sqrt {11} {\left (2 \, x - 1\right )}\right ) + \frac {1}{12} \, \log \left (x^{2} + x + 3\right ) - \frac {1}{12} \, \log \left (x^{2} - x + 3\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [A] time = 0.00, size = 54, normalized size = 0.81 \begin {gather*} \frac {\sqrt {11}\, \arctan \left (\frac {\left (2 x +1\right ) \sqrt {11}}{11}\right )}{66}+\frac {\sqrt {11}\, \arctan \left (\frac {\left (2 x -1\right ) \sqrt {11}}{11}\right )}{66}-\frac {\ln \left (x^{2}-x +3\right )}{12}+\frac {\ln \left (x^{2}+x +3\right )}{12} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [A] time = 3.04, size = 53, normalized size = 0.79 \begin {gather*} \frac {1}{66} \, \sqrt {11} \arctan \left (\frac {1}{11} \, \sqrt {11} {\left (2 \, x + 1\right )}\right ) + \frac {1}{66} \, \sqrt {11} \arctan \left (\frac {1}{11} \, \sqrt {11} {\left (2 \, x - 1\right )}\right ) + \frac {1}{12} \, \log \left (x^{2} + x + 3\right ) - \frac {1}{12} \, \log \left (x^{2} - x + 3\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [B] time = 4.15, size = 83, normalized size = 1.24 \begin {gather*} \mathrm {atan}\left (\frac {x\,8{}\mathrm {i}}{27\,\left (-\frac {5}{9}+\frac {\sqrt {11}\,1{}\mathrm {i}}{9}\right )}-\frac {2\,\sqrt {11}\,x}{27\,\left (-\frac {5}{9}+\frac {\sqrt {11}\,1{}\mathrm {i}}{9}\right )}\right )\,\left (\frac {\sqrt {11}}{66}+\frac {1}{6}{}\mathrm {i}\right )+\mathrm {atan}\left (\frac {x\,8{}\mathrm {i}}{27\,\left (\frac {5}{9}+\frac {\sqrt {11}\,1{}\mathrm {i}}{9}\right )}+\frac {2\,\sqrt {11}\,x}{27\,\left (\frac {5}{9}+\frac {\sqrt {11}\,1{}\mathrm {i}}{9}\right )}\right )\,\left (\frac {\sqrt {11}}{66}-\frac {1}{6}{}\mathrm {i}\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [A] time = 0.22, size = 70, normalized size = 1.04 \begin {gather*} - \frac {\log {\left (x^{2} - x + 3 \right )}}{12} + \frac {\log {\left (x^{2} + x + 3 \right )}}{12} + \frac {\sqrt {11} \operatorname {atan}{\left (\frac {2 \sqrt {11} x}{11} - \frac {\sqrt {11}}{11} \right )}}{66} + \frac {\sqrt {11} \operatorname {atan}{\left (\frac {2 \sqrt {11} x}{11} + \frac {\sqrt {11}}{11} \right )}}{66} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________